package main

import (
	"fmt"
)

func main() {
	var userList = map[string]map[string]string{
		"root":     {"passwd": "123456", "tel": "18273946387"},
		"admin":    {"passwd": "sdsdsdsd", "tel": "12387639282"},
		"xiaoming": {"passwd": "ssdsde", "tel": "12297652983"},
	}
	for {
		var user1 string
		var passwd1 string
		fmt.Scan(&user1, &passwd1)
		if userData, ok := userList[user1]; ok {
			if passwd1 == userData["passwd"] {
				fmt.Println(userData["tel"])
			}
		}
		if user1 == "q" {
			break
		}
	}
}